
const keythereum = require("keythereum");

var datadir = "/Users/snow/test/blockchain/data/";
var address= "0xad72143e567df36e35a217f5282ec455d9e12a36";//要小写
const password = "123";
var keyObject = keythereum.importFromFile(address, datadir);
var privateKey = keythereum.recover(password, keyObject);
console.log(privateKey.toString('hex'));

